Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / min-char-rnn.py
Last active September 5, 2026 12:18
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
Exercice 2 : Calcul de repas
Vous mangez 12 semaines par an à la cantine, le prix
par repas est de 6€, sachant que vous mangez 3 fois par semaine.
Combien devez-vous payer à la fin de chaque année ?
@marfillaster
marfillaster / unifi_container_rb5009.md
Last active September 5, 2026 12:03
UniFi Network Application + standalone MongoDB as RouterOS containers on a MikroTik RB5009 (1 GiB RAM, ARMv8.0-A Cortex-A72), with USB partitioned into swap + ext4

UniFi Network Application on MikroTik RB5009

Self-hosted UniFi Network controller and MongoDB running as two RouterOS containers on a MikroTik RB5009UPr+S+, backed by a USB stick split into swap and ext4 data partitions.

Part of a larger home-network build — full write-up with topology, VLANs, IPv6-over-WireGuard, and rationale: https://blog.homestack.space/mikrotik-home-network

Hardware

  • Router: MikroTik RB5009UPr+S+
    • CPU: Marvell Armada A72 (Cortex-A72), ARMv8.0-A, 4 cores @ 1.4 GHz
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@ipcjs
ipcjs / +Windows 10 Add Copy-Paste as Symbolic Link or Junction.md
Last active September 5, 2026 11:52 — forked from ndunks/paste-symlink.ps1
Windows 10 Add Copy-Paste as Symbolic Link or Junction
@amishmm
amishmm / ArchOracleCloud.md
Last active September 5, 2026 11:52
Install Arch Linux on Oracle Cloud (Free Tier)

Requirement

  • Console / Cloud Shell access (via https://cloud.oracle.com)
  • Go to the instance page and under Resources -> Console connection -> Launch Cloud Shell connection

Steps

  1. In Ubuntu OR any other Free tier Linux OS
# Download Alpine Linux and install it on disk
cd /
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso
@HAliss
HAliss / VolumetricFogTutorial.shader
Created January 13, 2025 08:03
A simple volumetric fog shader
Shader "Tutorial/VolumetricFog"
{
Properties
{
_Color("Color", Color) = (1, 1, 1, 1)
_MaxDistance("Max distance", float) = 100
_StepSize("Step size", Range(0.1, 20)) = 1
_DensityMultiplier("Density multiplier", Range(0, 10)) = 1
_NoiseOffset("Noise offset", float) = 0
@burkeholland
burkeholland / 4.1.chatmode.md
Last active September 5, 2026 11:51
4.1 Beast Mode v2
description 4.1 Beast Mode
tools
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@andrewgazelka
andrewgazelka / README.md
Created September 5, 2026 00:10
Rust Cranelift JIT demo: source-to-result benchmark against LLVM and Cranelift AOT, with raw measurements

Run ordinary Rust through a JIT

A small demo of rustc's experimental Cranelift JIT mode, plus the benchmark behind the graphic. It runs a normal .rs file: rustc parses and checks it, then Cranelift generates native machine code in memory and executes it. No standalone executable is emitted in JIT mode.

This reproduction targets Apple Silicon macOS. It was measured on an Apple M5 Max. The benchmark uses macOS library paths and system tools; it is not a cross-platform harness.